/*
 
 App Key：3174078670
 App Secret：07069aada4f5d0869d7f34320f9a404f
 
 
 */

import UIKit

//微博账号
let wbName = "13585511682"
let wbPassword = "qq836725313"


let WBSwitchRootViewControllerNoti = "WBSwitchRootViewControllerNoti"
//表情键盘删除按钮发送通知
let WBEmoticonDeleteButtonNoti = "WBEmoticonDeleteButtonNoti"
//点击表情按钮发送通知
let WBemoticonButtonNoti = "WBemoticonButtonNoti"



//新浪微博相关信息
let APPKEY = "3174078670"
let APPSECRET = "07069aada4f5d0869d7f34320f9a404f"


//回调页
let APPREDIRECT_URI = "http://www.baidu.com"


//app 主题颜色
let ThemeColor = UIColor.orangeColor()

//屏幕的宽和高
let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height

//RGB 颜色
func RGB(red:CGFloat,green:CGFloat,blue:CGFloat,alpha:CGFloat = 1) ->UIColor {
    
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)
}

// 随机颜色
func RandomColor() ->UIColor{
    let r = random()%256
    let g = random()%256
    let b = random()%256
    return RGB(CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}


// printLog 设置
func printLog<T>(message: T,file:String = #file, line:Int = #line, function: String = #function){
    // 上线后关闭打印 因为打印消耗性能
    #if DEBUG
        let f = (file as NSString).lastPathComponent
        let result = "\(f) [\(line)] \(function) : \(message)"
        print(result)
    #endif
}




